# eric7.Plugins.VcsPlugins.vcsGit.GitBranchPushDialog

Module implementing a dialog to select the data for pushing a branch.

### Global Attributes

None

### Classes

GitBranchPushDialog | Class implementing a dialog to select the data for pushing a branch.

### Functions

None

## GitBranchPushDialog

Class implementing a dialog to select the data for pushing a branch.

### Derived from

QDialog, Ui_GitBranchPushDialog

### Class Attributes

None

### Class Methods

None

### Methods

GitBranchPushDialog | Constructor
getData | Public method to get the selected data.
on_branchComboBox_editTextChanged | Private slot to handle a change of the branch name.

### Static Methods

None

#### GitBranchPushDialog (Constructor)

GitBranchPushDialog(branches, remotes, delete=False, parent=None)

Constructor

branches (list of str)
  list of branch names
remotes (list of str)
  list of remote names
delete (bool)
  flag indicating a delete branch action
parent (QWidget)
  reference to the parent widget

#### GitBranchPushDialog.getData

getData()

Public method to get the selected data.

Return:
  tuple of selected branch name, remote name and a flag indicating all branches

Return Type:
  tuple of (str, str, bool)

#### GitBranchPushDialog.on_branchComboBox_editTextChanged

on_branchComboBox_editTextChanged(txt)

Private slot to handle a change of the branch name.

txt (str)
  branch name

Up